package method.homework1203;
//求二维数组里面所有int数组的总和
//int[][] arr = {{1,2,3},{6,7,8,5,6,8},{3,4,5,6,7,8,9}};
public class work05 {
    public static void main(String[] args) {
        int[][] arr = {{1,2,3},{6,7,8,5,6,8},{3,4,5,6,7,8,9}};
        int count=0;
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                count+=arr[i][j];
            }
        }
        System.out.println(count);
    }
}
